/* 944. 删列造序 */
/**
 * @param {string[]} strs
 * @return {number}
 */
/* 直接遍历 */
var minDeletionSize = function (strs) {
    const row = strs.length, clom = strs[0].length
    let ret = 0
    for (let i = 0; i < clom; i++) {
        for (let j = 1; j < row; j++) {
            if (strs[j][i] < strs[j - 1][i]) {
                ret++
                break
            }
        }
    }
    return ret
};
const res = minDeletionSize(["zyx", "wvu", "tsr"])
console.log('minDeletionSize :>>', res);